package com.AllenDuke;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.AllenDuke.domain.Employee;
import com.AllenDuke.service.IEmployeeService;
import com.AllenDuke.service.impl.EmployeeServiceImpl;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = AppConfig.class)
public class AppTest {

	@Autowired
	private EmployeeServiceImpl service;

	@Test
	public void testSave() throws Exception {
		service.save(new Employee());
	}

	@Test
	public void testUpdate() throws Exception {
		service.update(new Employee());
	}

}
